package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface QuestionMapper {

    List<Question> list();

    List<Question> listByCondition(BaseRequest baseRequest);

    void save(Question question);

    Question getById(Integer id);

    void updateById(Question question);

   void deleteById(Integer id);
}
